package com.yuexunit.finance.project.entity.lexicon;

/**
 * @author wenwenlong
 */
public enum SettlementStateEnum {

	UNKNOWN("未知"), IDENTIFY("识别"), SETTLEMENT("已处理"), CANCEL("取消");

	private final String paramType;

	private SettlementStateEnum(String paramType) {
		this.paramType = paramType;
	}

	public String getValue() {
		return paramType;
	}

	/**
	 * 数字转为枚举类型
	 * @param value 风险状态标注 0:未知/1:识别/2:已处理/3:取消
	 * @return 风险状态枚举
	 */
	public static SettlementStateEnum valueOf(Integer value) {
		if (value == null || values().length <= value.intValue()) {
			return UNKNOWN;
		}
		return values()[value.intValue()];
	}
}
